-- GENERATED SPELL FOR [Coprous the Defiled] --


function spell0_31198(pUnit, Event) --@Acid Geyser,n/a--
pUnit:FullCastSpellOnTarget(38971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31198', 8000, 1)
end

function spell1_31198(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(5164,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31198', 2000, 1)
end

function Sorts_31198(pUnit, Event)
local choix_sorts_31198 = math.random(0, 1)
if choix_sorts_31198 == 0 then
pUnit:RegisterEvent('spell0_31198', 1, 1)
end
if choix_sorts_31198 == 1 then
pUnit:RegisterEvent('spell1_31198', 1, 1)
end
end

function mob31198_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31198', math.random(1500, 3000), 1)
end

function mob31198_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31198_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31198_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31198, 1, 'mob31198_Action')
RegisterUnitEvent(31198, 2, 'mob31198_Leave')
RegisterUnitEvent(31198, 3, 'mob31198_Kill')
RegisterUnitEvent(31198, 4, 'mob31198_Die')
